package com.zhongxi.guoyuan.entity.seller;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/7/6.
 */

public class SingleOrderInfo {
    private String id;
    private String ctime;
    private String gattr;
    private String goodsid;
    private String goodsname;
    private String goodsnum;
    private String goodsunitprice;
    private String orderid;
    private String price;
    private String shopid;
    private String shouldprice;
    private String subject;
    private String thumbnail;
    private String userid;
    private int goodstype;
    private String backinnernum;
    private String backredbean;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public String getGattr() {
        return gattr;
    }

    public void setGattr(String gattr) {
        this.gattr = gattr;
    }

    public String getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(String goodsid) {
        this.goodsid = goodsid;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public String getGoodsnum() {
        return goodsnum;
    }

    public void setGoodsnum(String goodsnum) {
        this.goodsnum = goodsnum;
    }

    public String getGoodsunitprice() {
        return goodsunitprice;
    }

    public void setGoodsunitprice(String goodsunitprice) {
        this.goodsunitprice = goodsunitprice;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getShopid() {
        return shopid;
    }

    public void setShopid(String shopid) {
        this.shopid = shopid;
    }

    public String getShouldprice() {
        return shouldprice;
    }

    public void setShouldprice(String shouldprice) {
        this.shouldprice = shouldprice;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public int getGoodstype() {
        return goodstype;
    }

    public void setGoodstype(int goodstype) {
        this.goodstype = goodstype;
    }

    public String getBackinnernum() {
        return backinnernum;
    }

    public void setBackinnernum(String backinnernum) {
        this.backinnernum = backinnernum;
    }

    public String getBackredbean() {
        return backredbean;
    }

    public void setBackredbean(String backredbean) {
        this.backredbean = backredbean;
    }

    public static SingleOrderInfo paseMatch(JSONObject jsonObject) {
        SingleOrderInfo singleOrderInfo = new SingleOrderInfo();
        singleOrderInfo.setId(jsonObject.optString("id"));
        singleOrderInfo.setCtime(jsonObject.optString("ctime"));
        singleOrderInfo.setGattr(jsonObject.optString("gattr"));
        singleOrderInfo.setGoodsid(jsonObject.optString("goodsid"));
        singleOrderInfo.setGoodsname(jsonObject.optString("goodsname"));
        singleOrderInfo.setGoodsnum(jsonObject.optString("goodsnum"));
        singleOrderInfo.setGoodsunitprice(jsonObject.optString("goodsunitprice"));
        singleOrderInfo.setOrderid(jsonObject.optString("orderid"));
        singleOrderInfo.setPrice(jsonObject.optString("price"));
        singleOrderInfo.setShopid(jsonObject.optString("shopid"));
        singleOrderInfo.setShouldprice(jsonObject.optString("shouldprice"));
        singleOrderInfo.setSubject(jsonObject.optString("subject"));
        singleOrderInfo.setThumbnail(jsonObject.optString("thumbnail"));
        singleOrderInfo.setUserid(jsonObject.optString("userid"));
        singleOrderInfo.setGoodstype(jsonObject.optInt("goodstype"));
        singleOrderInfo.setBackinnernum(jsonObject.optString("backinnernum"));
        singleOrderInfo.setBackredbean(jsonObject.optString("backredbean"));
        return singleOrderInfo;
    }
}
